﻿using Mrhd.Core.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Mrhd.Application
{
    public class ProductEntityDto
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public string Code { get; set; }
        public string Description { get; set; }
        public string UnitName { get; set; }
        public double Price { get; set; }
        public string Logo { get; set; }
        public int Stock { get; set; }
        public int? ProductTypeId { get; set; }
        public string Attributes { get; set; }
        public ProductStatus Status { get; set; }
        public List<ProductImageDto> Images { get; set; }
        public bool IsDiscount { get; set; }
        public int Sort { get; set; }

    }

    public class ProductImageDto
    {
        public int Id { get; set; }
        public string Name { get; set; }
        /// <summary>
        /// 大图
        /// </summary>
        public string Big { get; set; }
        /// <summary>
        /// 小图
        /// </summary>
        public string Small { get; set; }
        /// <summary>
        /// 商品id
        /// </summary>
        public int ProductId { get; set; }
    }

}
